package com.laikan.reader.core.bean;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

/**
 * Created by Administrator on 2016/9/19.
 */
public class ClickToSupportBean implements Serializable {

    /**
     * {
     * "data": {
     * "likeCount": 1,
     * "favor": true
     * },
     * "result": 1,
     * "error_no": 0,
     * "error_msg": ""
     * }
     */
    @SerializedName ("error_no")
    private String error_no;
    @SerializedName ("error_msg")
    private String error_msg;
    @SerializedName ("data")
    private InterActionBean interActionBean;
    @SerializedName ("result")
    private String result;

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getError_no() {
        return error_no;
    }

    public void setError_no(String error_no) {
        this.error_no = error_no;
    }

    public String getError_msg() {
        return error_msg;
    }

    public void setError_msg(String error_msg) {
        this.error_msg = error_msg;
    }

    public InterActionBean getInterActionBean() {
        return interActionBean;
    }

    public void setInterActionBean(InterActionBean interActionBean) {
        this.interActionBean = interActionBean;
    }

    @Override
    public String toString() {
        return "ClickToSupportBean{" +
               "error_no='" + error_no + '\'' +
               ", error_msg='" + error_msg + '\'' +
               ", interActionBean=" + interActionBean +
               ", result='" + result + '\'' +
               '}';
    }

    public class InterActionBean implements Serializable {
        @SerializedName ("likeCount")
        private String likeCount;
        @SerializedName ("favor")
        private Boolean isFavor;

        public String getLikeCount() {
            return likeCount;
        }

        public void setLikeCount(String likeCount) {
            this.likeCount = likeCount;
        }

        public Boolean getFavor() {
            return isFavor;
        }

        public void setFavor(Boolean favor) {
            isFavor = favor;
        }

        @Override
        public String toString() {
            return "InterActionBean{" +
                   "likeCount='" + likeCount + '\'' +
                   ", isFavor=" + isFavor +
                   '}';
        }
    }
}
